package org.jgs1904.chanmufeng;

/**
 * 简单的懒汉式单例
 *
 * @author: 默苍璃
 * @date: 2024-07-01 10:02
 */
public class LazySimpleSingleton {

    private static LazySimpleSingleton instance;

    private LazySimpleSingleton() {
    }

    public static LazySimpleSingleton getInstance() {
        // 如果实例不存在，则进行初始化
        if (instance == null) {
            instance = new LazySimpleSingleton();
        }
        return instance;
    }

}

